<%--
  Created by IntelliJ IDEA.
  User: barton
  Date: 16-5-17
  Time: 下午3:19
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Http Message Converter</title>
    <script src="/js/jquery-2.2.3.js"></script>
    <script>
        function req() {
            $.ajax({
                url: "convert",
                data: "1-barton",
                type: "POST",
                contentType: "application/x-barton",
                success: function (data) {
                    console.log(data)
                    $("#resp").html(data);
                }
            });
        }
    </script>
</head>
<body>
<div id="resp"></div>
<input type="button" onclick="req();" value="请求"/>
</body>
</html>
